<!DOCTYPE html>
<html>
<head>
    <title>Mapbox GL JS debug page</title>
    <meta charset='utf-8'>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <link rel='stylesheet' href='mapbox-gl.css' />
    <style>
        body { margin: 0; padding: 0; }
        html, body, #map { height: 100%; }
    </style>
</head>

<body>
<div id='map'></div>

<script src='mapbox-gl-dev.js'></script>
 
<script>

var map = new mapboxgl.Map({
    container: 'map',
    style: {
        "version": 8,
        "sources": {
            "geojson": {
                "type": "geojson",
                "data": 'http://localhost:8004/mb/earthquakes.geojson'
            }
        },
        "transition": {
            "duration": 1000
        },
        "layers": [
            {
                "id": "circle",
                "type": "circle",
                "source": "geojson",
                "paint": {
                    //"circle-translate": [-50, 0],
                    "circle-radius":10
                }
            }
        ]
    }
});

map.on('click', function(e) {
    map.setPaintProperty("circle", "circle-color", "red");
   // map.setPaintProperty("circle", "circle-translate", [250, 250]);
});

</script>
</body>
</html>